package cn.neusoft.mapper;

import cn.neusoft.query.BaseQuery;
import org.apache.ibatis.annotations.Mapper;

import java.sql.SQLException;
import java.util.List;
@Mapper
public interface BaseMapper<T>{
	public int add(T t) throws SQLException;
	public int update(T t) throws SQLException;
	public int delete(Integer id) throws SQLException;
	public T getById(Integer id) throws SQLException;
	public List<T> getAll(BaseQuery baseQuery) throws SQLException;
}
